fun main() {
    println("=== Kotlin Demo ===")
    println("Hello from Kotlin running on GraalVM 25!")
    println("Java Version: ${System.getProperty("java.version")}")
    println("GraalVM Info: ${System.getProperty("java.vm.name")}")

    val languages = listOf("Java", "Kotlin", "Scala", "Groovy")
    val message = buildString {
        append("Languages: ")
        languages.forEachIndexed { index, lang ->
            if (index > 0) append(" + ")
            append(lang)
        }
    }
    println(message)
}
